﻿using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess
{
    /// <summary>
    /// 宠物寄养表
    /// </summary>
    [Table("petfosterage")]
    [PrimaryKey(nameof(merchantid), nameof(petfosterageid))]
    public class PetFosterage
    {
        /// <summary>
        /// 商户id
        /// </summary>
        [JsonIgnore]
        public long merchantid { get; set; }

        /// <summary>
        /// 数据id
        /// </summary>
        public long petfosterageid { get; set; }

        /// <summary>
        /// 公告内容
        /// </summary>
        public string? content { get; set; }

        /// <summary>
        /// 图片集
        /// </summary>
        public string? imgsrcs { get; set; }

        /// <summary>
        /// 视频集
        /// </summary>
        public string? videosrc { get; set; }

        /// <summary>
        /// 数据类型：0：寄养信息；1：美容信息；
        /// </summary>
        public int datatype { get; set; }

        /// <summary>
        ///更新时间
        /// </summary>
        public DateTime? updatetime { get; set; }
    }
}
